package com.example.huixue.dto;

public class RatingStats {
    private Double averageRating;
    private Integer totalRatings;
    private Integer[] ratingDistribution; // 1-5星的分布
    
    public RatingStats() {}
    
    public RatingStats(Double averageRating, Integer totalRatings, Integer[] ratingDistribution) {
        this.averageRating = averageRating;
        this.totalRatings = totalRatings;
        this.ratingDistribution = ratingDistribution;
    }
    
    public Double getAverageRating() {
        return averageRating;
    }
    
    public void setAverageRating(Double averageRating) {
        this.averageRating = averageRating;
    }
    
    public Integer getTotalRatings() {
        return totalRatings;
    }
    
    public void setTotalRatings(Integer totalRatings) {
        this.totalRatings = totalRatings;
    }
    
    public Integer[] getRatingDistribution() {
        return ratingDistribution;
    }
    
    public void setRatingDistribution(Integer[] ratingDistribution) {
        this.ratingDistribution = ratingDistribution;
    }
} 